﻿using System.Data.Entity;

namespace GBlog.Core.Data
{
    public interface IDbContext
    {
        IDbSet<TEntity> Set<TEntity>() where TEntity : class;
        int SaveChanges();
        void Dispose();
        Database Database { get; }
    }
}